<?php
 /* 
  * @function bm/notes_view.php
  * @author   Aaron Johnson
  * @created  Dec 1, 2007
  */
  
 	//validate data if submitted
 	if(isset($_POST['submit']))
 	{
 		//add the note
 	}
 	else
 	{
 		//
 	}
 	
 	
 	$title = array('title' => 'Birthmother Notes');
	 
	$this->load->view('includes/header.inc.php', $title); 
	
//	$query = $this->db->get('notes');
?>
	
	<div><font size="+1"><u>Add New Birthmother Note</u></font></div>
	<form action="notes_view.php" method="post">
	 <div>
	 	<table cellpadding="2">
	  	 <tr>
	  	  <td>Title:</td>
	  	  <td><input type="text" name="title" size="40" maxlength="45"></td>
	  	 </tr>
	  	 <tr valign="top">
	  	  <td>Note:</td>
	  	  <td><textarea name="comments" rows="4" cols="30"></textarea></td>
	  	 </tr>
	 	</table>
	 	<div><input type="submit" name="submitted" value="Add Note" /></div>		
 	 </div>
 	</form>
	
	<hr>

	<?php foreach($notes as $note): ?>
	  	<p>
		<fieldset><legend><?=$note->NOTE_TITLE.' -- <font size="-1"><i>'.$note->DISPLAY_NAME.', '.$note->ADDED.'</i></font>';?></legend>
	
			<?=$note->NOTE_BODY;?>
		
		</fieldset>
	<?php endforeach; ?>
	
<?php $this->load->view('includes/footer.inc.php'); ?>
